// crea la query string a partire dai parametri inseriti -->
function createQueryString(){				
	queryParam="";
	
	appo=document.getElementById("form-edate").value;
	if(appo!=""){
		queryParam+="edate="+encodeURIComponent(appo);
	}
	appo=document.getElementById("form-etitle").value;
	if(appo!=""){
		queryParam+="&etitle="+encodeURIComponent(appo);
	}
	appo=document.getElementById("form-etype").value;
	if(appo!=""){
		queryParam+="&etype="+encodeURIComponent(appo);
	}
	appo=document.getElementById("form-esubject").value;
	if(appo!=""){
		arrTemp=appo.split(",");
		for(i=0;i<arrTemp.length;i++){
			queryParam+="&folksonomia["+i+"]="+encodeURIComponent(arrTemp[i]);
		}
	}
	appo=document.getElementById("form-ecreator").value;
	if(appo!=""){
		arrTemp=appo.split(",");
		for(i=0;i<arrTemp.length;i++){
			queryParam+="&ecreator["+i+"]="+encodeURIComponent(arrTemp[i]);
		}
	}
	
	appo=document.getElementById("form-econtributor").value;
	if(appo!=""){
		arrTemp=appo.split(",");
		for(i=0;i<arrTemp.length;i++){
			queryParam+="&econtributor["+i+"]="+encodeURIComponent(arrTemp[i]);
		}
	}
	appo=document.getElementById("form-elanguage").value;
	if(appo!=""){
		queryParam+="&elanguage="+encodeURIComponent(appo);
	}
	
	// se inizia con l' & lo cavo 
	if(queryParam.indexOf("&")==0){
		queryParam=queryParam.substr(1);
	}
	if(queryParam.length==0){
		return;
	}

	return queryParam;
}
